<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>{block name="title"}管理中心-测试中{/block}</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <link rel="stylesheet" href="__YI__/layui/css/layui.css">
    {block name="linkfile"}
    <link rel="stylesheet" href="__YI__/css/admin.css">
    <link rel="stylesheet" href="__YI__/css/yi.css">
    {/block}
</head>
<body class="layui-layout-body" layadmin-themealias="default">
    <div class="layadmin-tabspage-none">
        <div class="layui-layout layui-layout-admin">
            <!-- 头部区域（可配合layui已有的水平导航） -->
            <div class="header layui-header layui-top-menu">
                <ul class="left layui-nav layui-layout-left">
                    <li class="layui-nav-item layadmin-flexible" lay-unselect="">
                        <a href="javascript:;" layadmin-event="flexible" title="侧边伸缩">
                            <i class="layui-icon layui-icon-shrink-right layui-icon-shrink-left"></i>
                        </a>
                    </li>
                    {if condition="count($user.menu.menu_h.menu_h_s) > 0"}
                    <li class="layui-nav-item layui-hide-xs">
                        <a href="javascript:;" layadmin-event="more">查询中心</a>
                        <dl class="layui-nav-child">
                        {foreach $user.menu.menu_h.menu_h_s as $key => $value}
                            {if condition="isset($value['sub'])"}
                                {foreach $value['sub'] as $k => $v}
                                    {if condition="$v.type eq 'select'"}
                                        <dd class="nav-item"><a lay-href="{$v.url}" data-id="{$v.id}" data-title="{$v.alt}" data-type="tabAdd">{$v.alt}</a></dd>
                                    {/if}
                                {/foreach}
                            {else/}
                                {if condition="$value.type eq 'select'"}
                                    <dd class="nav-item"><a lay-href="{$value.url}" data-id="{$value.id}" data-title="{$value.alt}" data-type="tabAdd">{$value.alt}</a></dd>
                                {/if}
                            {/if}
                        {/foreach}
                        </dl>
                    </li>
                    {/if}
                    {if condition="count($user.menu.menu_h.menu_h_c) > 0"}
                    <li class="layui-nav-item layui-hide-xs">
                        <a href="javascript:;" layadmin-event="more">控制中心</a>
                        <dl class="layui-nav-child">
                            {foreach $user.menu.menu_h.menu_h_c as $key => $value}
                                {if condition="isset($value['sub'])"}
                                    {foreach $value['sub'] as $k => $v}
                                        {if condition="$v.type eq 'contrl'"}
                                            <dd class="nav-item"><a lay-href="{$v.url}" data-id="{$v.id}" data-title="{$v.alt}" data-type="tabAdd">{$v.alt}</a></dd>
                                        {/if}
                                    {/foreach}
                                {else/}
                                    {if condition="$value.type eq 'contrl'"}
                                        <dd class="nav-item"><a lay-href="{$value.url}" data-id="{$value.id}" data-title="{$value.alt}" data-type="tabAdd">{$value.alt}</a></dd>
                                    {/if}
                                {/if}
                            {/foreach}
                        </dl>
                    </li>
                    {/if}
                </ul>
            </div>
            <!-- 左侧导航区域（可配合layui已有的垂直导航） -->
            <div class="left layui-side layui-side-menu ">
                <div class="layui-side-scroll">
                    <div class="layui-logo" lay-href="">
                        <span>管理中心</span>
                    </div>
                    <ul class="layui-nav layui-nav-tree"  lay-filter="menu">
                        {foreach $user.menu.menu_v as $key => $value}
                            {if condition="isset($value['sub'])"}
                                <li class="layui-nav-item nav-item">
                                    <i class="layui-icon layui-icon-{$value.icon}"></i>
                                    <a lay-href="{$value.url}" data-id="{$value.id}" data-title="{$value.alt}">
                                        <cite>{$value.alt}</cite>
                                    </a>
                                    {foreach $value['sub'] as $k => $v}
                                        <dl class="layui-nav-child">
                                            <dd>
                                                <a lay-href="{$v.url}" data-id="{$v.id}" data-title="{$v.alt}" data-type="tabAdd">
                                                    <cite>{$v.alt}</cite>
                                                </a>
                                            </dd>
                                        </dl>
                                    {/foreach}
                                </li>
                            {else/}
                                <li class="layui-nav-item nav-item">
                                    <a lay-href="{$value.url}" data-id="{$value.id}" data-title="{$value.alt}" data-type="tabAdd">
                                        <i class="layui-icon layui-icon-{$value.icon}"></i>
                                        <cite>{$value.alt}</cite>
                                    </a>
                                </li>
                            {/if}
                        {/foreach}
                    </ul>
                </div>
            </div>
        </div>
    </div>
<script src="__YI__/layui/layui.js"></script>
<script type="text/javascript">
/*JavaScript代码区域*/
layui.config({
    base: '/static/yiadmin/',
    version: '1.1.4',
    debug: true
}).use('index');
</script>
</html>